home *** CD-ROM | disk | FTP | other *** search
- (function()
- {
- //returns the current focused document-REVIEW
- this.documentGetFocused = function()
- {
- return window.top.getBrowser().browsers[window.top.getBrowser().mTabBox.selectedIndex].contentDocument;
- }
- //returns the content of the metadescription of a document
- this.documentGetMetaDescription = function(aDoc)
- {
- var tobj = aDoc.evaluate("//*/meta[@name='DESCRIPTION']|//*/meta[@name='description']", aDoc, null, XPathResult.ANY_TYPE, null);
- var metaTag = tobj.iterateNext();
- if(metaTag)
- {
- return metaTag.getAttribute('content');
- }
- else
- {
- return '';
- }
- }
- //gets the title of the aTab-REVIEW
- this.documentGetTitle = function(aDoc)
- {
- return String(aDoc.title);
- }
-
- return null;
-
- }).apply(metaTitleDescriptionOnTop);
-